import Vue from 'vue'
import VueRouter from 'vue-router'
// 配置路由
import LayOut from '@/views/LayOut' // 一级首页架子
import LoGin from '@/views/LoGin' // 登录页
import ExperienceProject from '@/views/ExperienceProject' //  // 二级  体验项目
import DashBoard from '@/views/DashBoard' // 二级
// import SideBar from '@/views/SideBar'// 二级
import WareHouse from '@/views/WareHouse' // 三级
import BusinessManaGement from '@/views/BusinessManaGement'// 二级
// import ExperienceProject from '@/views/ExperienceProject'
import ManagementWare from '@/views/ManagementWare'// 二级
import OutBoundAi from '@/views/OutBoundAi'// 二级
import PutStorage from '@/views/PutStorage'// 二级
import GoodsAi from '@/views/components/GoodsAi'
import KuQuReseRvoir from '@/views/components/KuQuReseRvoir'
import LocaTion from '@/views/components/LocaTion'
import LocationView from '@/views/components/LocationView'
import TypeOfGoods from '@/views/components/TypeOfGoods'

// import SiDe from '@/components/SiDe'
Vue.use(VueRouter)
// const routes = []
// export default router

//
const router = new VueRouter({
  routes: [
    { path: '/login', component: LoGin },

    {
      path: '/',
      component: LayOut,
      redirect: '/DashBoard',
      children: [
        {
          path: '/DashBoard',
          component: DashBoard,
          meta: { title: '首页', icon: 'DashBoard' }

        },
        { path: '/WareHouse', component: WareHouse },
        { path: '/GoodsAi', component: GoodsAi },
        { path: '/KuQuReseRvoir', component: KuQuReseRvoir },
        { path: '/LocaTion', component: LocaTion },
        { path: '/LocationView', component: LocationView },
        { path: '/TypeOfGoods', component: TypeOfGoods },

        { path: '/ManagementWare', component: ManagementWare },
        // { path: '/BusinessManaGement', component: BusinessManaGement },
        // { path: '/ExperienceProject', component: ExperienceProject },
        { path: '/OutBoundAi', component: OutBoundAi },
        { path: '/PutStorage', component: PutStorage },
        { path: '/BusinessManaGement', component: BusinessManaGement },
        {
          path: '/experienceproject',
          component: ExperienceProject
          // children: [
          //   { path: '/WareHouse', component: WareHouse }
          // ]
        }

        // { path: '/SiDe', component: SiDe }
      ]
    }
  ]
})
export default router
